import http from '@/utils/request'

const apiBefore = ''

export const app = {
  getTenantConfigApi: param => {
    return http.get(`${apiBefore}/api/tenant/configuration/list?keyword=` + param.keyword)
  },
  // crud report
  getDataListApi: (url, params) => {
    return http.get(url, { params })
  },
  getDataInfoApi: (url, params) => {
    return http.get(url, { params })
  },
  addDataInfoApi: (url, params) => {
    return http.post(url, params)
  },
  updateDataInfoApi: (url, params) => {
    // `${umApiBefore}/data/api/${params.id}/update`
    return http.put(url, params)
  },
  deleteDataInfoApi: (url, params) => {
    // ${umApiBefore}/data/api/${params.id}/delete
    return http.delete(url, params)
  }

}
